package com.xiaofeng.springboot.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.xiaofeng.springboot.rabbitmq.queue.QueueConstant;

/**
 * 
 * @author chenzf
 * @date 2017年7月26日
 */
@Component
@SuppressWarnings("static-method")
public class RabbitMQListener {
	@RabbitHandler
	@RabbitListener(queues = QueueConstant.QUEUE_HELLO)
	public void listen(String param) {
		System.out.printf("param=%s", param);
	}
}
